package com.mysky.client.mvp.audioplayer.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.mysky.client.mvp.audioplayer.event.MDSongFinishedEvent.MDSongFinishedEventHandler;

public class MDSongFinishedEvent extends
		GwtEvent<MDSongFinishedEventHandler> {

	public static final Type<MDSongFinishedEventHandler> TYPE = new Type<MDSongFinishedEventHandler>();

	public MDSongFinishedEvent() {
		super();
	}

	public interface MDSongFinishedEventHandler extends EventHandler {
		void handleEvent(MDSongFinishedEvent event);
	}

	@Override
	public Type<MDSongFinishedEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(MDSongFinishedEventHandler handler) {
		handler.handleEvent(this);
	}
}